package web;

import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import biz.UserplusBiz;
import entity.Userplus;

public class SelectUserServlet extends HttpServlet {
	private static final long serialVersionUID = 1L;

    public SelectUserServlet() {
        super();
    }

	protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		String id = request.getParameter("id");
		UserplusBiz biz = new UserplusBiz();
		Userplus userplus = biz.selectUserplusById(Integer.parseInt(id));
		request.setAttribute("user", userplus);
		request.getRequestDispatcher("UpdateUser.jsp").forward(request, response);
	}

	protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		doGet(request, response);
	}

}
